/*
 * PvpPkBuffPositionResource.h
 *
 *  Created on: 2014. 6. 16.
 *      Author: the2
 */

#ifndef PVPPKBUFFPOSITIONRESOURCE_H_
#define PVPPKBUFFPOSITIONRESOURCE_H_


#include <map>

namespace ProjectZ { namespace NResource {

class PvpPkBuffPositionResource
{
public:
	struct Flyweight
	{
		Flyweight()
		: _PVP_X(-1), _PVP_Y(-1),
		  _PK_X(-1), _PK_Y(-1) {}
		int _PVP_X;
		int _PVP_Y;
		int _PK_X;
		int _PK_Y;
	};

public:
	PvpPkBuffPositionResource();
	virtual ~PvpPkBuffPositionResource();

	bool LoadResource();
	Flyweight * GetFly(int index);
	int GetRandomFlyIndex();

private:
	void Clear();

private:
	typedef std::map<int, Flyweight *>	DATATREE;
	DATATREE clsFlyTree;
};

} /* namespace NResource */ } /* namespace ProjectZ */


#endif /* PVPPKBUFFPOSITIONRESOURCE_H_ */
